package com.vimi8.ebb.dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by wangguiyin on 2017/2/18.
 */
public class RegionBusinessDto implements Serializable {


    private List<String> businessList = new ArrayList<>();
    private List<String> tradingList = new ArrayList<>();
    private List<String> addressList = new ArrayList<>();


    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        RegionBusinessDto that = (RegionBusinessDto) o;

        if (businessList != null ? !businessList.equals(that.businessList) : that.businessList != null) return false;
        if (tradingList != null ? !tradingList.equals(that.tradingList) : that.tradingList != null) return false;
        return addressList != null ? addressList.equals(that.addressList) : that.addressList == null;

    }

    @Override
    public int hashCode() {
        int result = businessList != null ? businessList.hashCode() : 0;
        result = 31 * result + (tradingList != null ? tradingList.hashCode() : 0);
        result = 31 * result + (addressList != null ? addressList.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "RegionBusinessDto{" +
                "businessList=" + businessList +
                ", tradingList=" + tradingList +
                ", addressList=" + addressList +
                '}';
    }

    public RegionBusinessDto() {
    }

    public RegionBusinessDto(List<String> businessList, List<String> tradingList, List<String> addressList) {

        this.businessList = businessList;
        this.tradingList = tradingList;
        this.addressList = addressList;
    }

    public List<String> getBusinessList() {

        return businessList;
    }

    public void setBusinessList(List<String> businessList) {
        this.businessList = businessList;
    }

    public List<String> getTradingList() {
        return tradingList;
    }

    public void setTradingList(List<String> tradingList) {
        this.tradingList = tradingList;
    }

    public List<String> getAddressList() {
        return addressList;
    }

    public void setAddressList(List<String> addressList) {
        this.addressList = addressList;
    }
}
